package com.example.aitoedu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AllUserTalkVO {

    @Schema(description = "未读条数")
    private Integer notRead;

    @Schema(description = "对话人id")
    private Long talker;

    @Schema(description = "对话人头像")
    private String picture;

    @Schema(description = "对话人名字")
    private String talkName;

    @Schema(description = "最后对话时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime lastTime;

    @Schema(description = "最后对话内容")
    private String lastContent;
}
